package com.personal.mapper;

import com.personal.pojo.UserSign;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserSignMapper {

    /**
     * 查询今日是否签到过了
     * @return
     */
    int queryUserSignToday(int userId);

    /**
     * 签到
     * @return
     */
    int sign(@Param("userId") Integer userId,@Param("signExplain") String signExplain);
}